Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
@neovici/cosmoz-utils
Advanced tools
Date, money and template management functions commonly needed in Cosmoz views.
cosmoz-utils contains date, money and template management functions commonly needed in page views. This package does not contain any visual element.
Upgrading from cosmoz-behaviors
is very straightforward.
Cosmoz.TemplateHelperBehavior
-> import { Template } from '@neovici/cosmoz-utils'
Cosmoz.MoneyHelperBehavior
-> import { Money } from '@neovici/cosmoz-utils'
Cosmoz.DateHelperBehavior
-> import { Date } from '@neovici/cosmoz-utils'
Polymer.mixinBehaviors([Cosmoz.TemplateHelperBehavior], Polymer.Element)
-> mixin(Template, PolymerElement)
Polymer.mixinBehaviors([Cosmoz.TemplateHelperBehavior, Cosmoz.MoneyHelperBehavior], Polymer.Element)
-> mixin({...Template, ...Money}, PolymerElement)
This code:
<link rel="import" href="../cosmoz-templatehelper-behavior.html" />
class DemoTemplateHelper extends Polymer.mixinBehaviors([Cosmoz.TemplateHelperBehavior], Polymer.Element) {
Becomes:
import { PolymerElement } from '@polymer/polymer/polymer-element';
import { mixin, Template } from '@neovici/cosmoz-utils';
class DemoTemplateHelper extends mixin(Template, PolymerElement) {
You can also pick and choose only the functions your element needs:
import { mixin, Money } from '@neovici/cosmoz-utils';
import { isEmpty } from '@neovici/cosmoz-utils/template';
import { isoDate } from '@neovici/cosmoz-utils/date';
class DemoMoneyHelper extends mixin({isEmpty, isoDate, ...Money}, PolymerElement) {
Cross-browser Testing Platform and Open Source <3 Provided by [Sauce Labs][sauce_homepage]
[sauce_homepage]: https://saucelabs.com
FAQs
Date, money and template management functions commonly needed in Cosmoz views.
The npm package @neovici/cosmoz-utils receives a total of 388 weekly downloads. As such, @neovici/cosmoz-utils popularity was classified as not popular.
We found that @neovici/cosmoz-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.